package com.eblacorp.archive.security.ldap.model;

import java.io.Serializable;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.springframework.core.style.ToStringCreator;
/**
 * @author Mahmoud.Ezzat
 * 
 */
public class SearchCriteria implements Serializable {

	private static final long serialVersionUID = -4263208255805049113L;

	private String name = "";

	public SearchCriteria(String name) {
		super();
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setName(String firstName) {
		this.name = firstName;
	}

	public int hashCode() {
		return HashCodeBuilder.reflectionHashCode(this);
	}

	public boolean equals(Object obj) {
		if (obj == null || getClass() != obj.getClass())
			return false;
		return EqualsBuilder.reflectionEquals(this, obj);
	}

	public String toString() {
		return new ToStringCreator(this).append("name", name).toString();
	}
}